package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.base.BaseEntity;

import java.util.Date;

/**
 * 公告管理表 hatchet_announcement
 * 
 * @author ruoyi
 * @date 2019-03-21
 */
public class HatchetAnnouncement extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 主键id */
	private String id;
	/** 标题 */
	private String title;
	/** 内容 */
	private String content;
	/**发送人员等级 0全部客户 1.普通客户 2.黄金会员3.经纪人 */
	private String updateUser;
	/** 更新时间 */
	private Date updateDate;
	/** 状态 */
	private String status;
	/** 生效时间 */
	private Date effectiveFromTime;
	/** 失效时间 */
	private Date effectiveToTime;
	
   //临时字段
	private String strEffectiveFromTime;
	private String strEffectiveToTime;
	
	public void setId(String id) 
	{
		this.id = id;
	}

	public String getId() 
	{
		return id;
	}
	public void setTitle(String title) 
	{
		this.title = title;
	}

	public String getTitle() 
	{
		return title;
	}
	public void setContent(String content) 
	{
		this.content = content;
	}

	public String getContent() 
	{
		return content;
	}
	public void setUpdateUser(String updateUser) 
	{
		this.updateUser = updateUser;
	}

	public String getUpdateUser() 
	{
		return updateUser;
	}
	public void setUpdateDate(Date updateDate) 
	{
		this.updateDate = updateDate;
	}

	public Date getUpdateDate() 
	{
		return updateDate;
	}
	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getStatus() 
	{
		return status;
	}
	public void setEffectiveFromTime(Date effectiveFromTime) 
	{
		this.effectiveFromTime = effectiveFromTime;
	}
	public Date getEffectiveFromTime() 
	{
		return effectiveFromTime;
	}
	public void setEffectiveToTime(Date effectiveToTime) 
	{
		this.effectiveToTime = effectiveToTime;
	}
	public Date getEffectiveToTime() 
	{
		return effectiveToTime;
	}
	 
    public String getStrEffectiveFromTime() {
		return strEffectiveFromTime;
	}

	public void setStrEffectiveFromTime(String strEffectiveFromTime) {
		this.strEffectiveFromTime = strEffectiveFromTime;
	}

	public String getStrEffectiveToTime() {
		return strEffectiveToTime;
	}

	public void setStrEffectiveToTime(String strEffectiveToTime) {
		this.strEffectiveToTime = strEffectiveToTime;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("updateUser", getUpdateUser())
            .append("updateDate", getUpdateDate())
            .append("status", getStatus())
            .append("effectiveFromTime", getEffectiveFromTime())
            .append("effectiveToTime", getEffectiveToTime())
            .toString();
    }
}
